Socket
Socket
Sign inDemoInstall

lodash.isarguments

Package Overview
Dependencies
Maintainers
3
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lodash.isarguments

The lodash method `_.isArguments` exported as a module.


Version published
Weekly downloads
6.6M
increased by3.03%
Maintainers
3
Weekly downloads
 
Created

What is lodash.isarguments?

The lodash.isarguments package is a utility function that checks if a given value is an arguments object. This is useful for type checking and ensuring that the value being worked with is indeed an arguments object, which is a special type of object in JavaScript that holds the arguments passed to a function.

What are lodash.isarguments's main functionalities?

Check if a value is an arguments object

This feature allows you to check if a given value is an arguments object. In the code sample, the `isArguments` function is used to check if the `arguments` object inside `exampleFunction` is indeed an arguments object, which returns true. It also checks if a regular array is an arguments object, which returns false.

const isArguments = require('lodash.isarguments');

function exampleFunction() {
  console.log(isArguments(arguments)); // true
}

exampleFunction();
console.log(isArguments([1, 2, 3])); // false

Other packages similar to lodash.isarguments

Keywords

FAQs

Package last updated on 13 Aug 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc